package com.glacier.framework.component.dto.query;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

/**
 * date 2023-12-22 12:25
 *
 * @author glacier
 * @version 1.0
 */
@Data
@ToString
@EqualsAndHashCode(callSuper = false)
public class PageQuery extends Query {
    /**
     * 页码
     */
    private int pageIndex;
    /**
     * 每页显示条数
     */
    private int pageSize;

    public PageQuery() {
        this(1, 10);
    }

    public PageQuery(int pageSize, int pageIndex) {
        this.pageSize = pageSize;
        this.pageIndex = pageIndex;
    }
}
